package com.ccrfid.rmc6.repository.toolcase;

import com.ccrfid.rmc6.entity.toolcase.ToolTakeRecordEntity;
import org.springframework.data.repository.Repository;

public interface ToolTakeRecordRepository extends Repository<ToolTakeRecordEntity, Long> {

    ToolTakeRecordEntity save(ToolTakeRecordEntity entity);

    Boolean existsByToolCaseIdAndTakeBackTimeIsNull(Long toolCaseId);

    ToolTakeRecordEntity getByToolCaseIdAndTakeBackTimeIsNull(Long toolCaseId);


}
